<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var obj = new Object()
      console.log(obj)
      var arr = []
      arr[1] = '张三'

      for (let i = 0; i < arr.length; i++) {
        console.log(arr[i])
      }
      var obj1 = new Object()
      obj1.name = '张三'
      obj1.age = 20
      console.log(obj1)
      var myname = 123
      var obj = {
        myname: '张三',
        age: 20,
      }
      console.log(obj)
      //   Object.keys(obj).forEach(item=>{
      //     console.log(typeof item);
      //   })
      var obj = {
        my_child: 'au_phy',
        bar: 'foo',
      }
      console.log(obj)
      //键名永远是字符串 接收变量只能通过中括号obj[variable]的方式
      var myname = '李四'
      var obj = {
        myname: myname,
        age: 20,
      }
      console.log(obj)
    </script>
  </body>
</html>
